home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / t3_1 / xlib.lha / xlib / xws5.cdecl < prev    next >
Text File  |  1990-05-29  |  5KB  |  233 lines

  1. ;;; Graphics Resource Functions
  2.  
  3. ;;; 5.1.1  Creating, Copying, and Destroying Color Maps
  4.  
  5. (extern Colormap "XCreateColormap"
  6.     (DisplayP dpy)
  7.     (Window w)
  8.     (VisualP visual)
  9.     (int alloc))
  10.  
  11. (extern Colormap "XCopyColormapAndFree" (DisplayP dpy) (Colormap src_cmap))
  12.  
  13. (extern void "XSetWindowColormap"
  14.     (DisplayP dpy)
  15.     (Window w)
  16.     (Colormap colormap))
  17.  
  18. (extern void "XFreeColormap" (DisplayP dpy) (Colormap cmap))
  19.  
  20. ;;; 5.1.2  Allocating, Modifying, and Freeing Color Cells
  21.  
  22. (extern Status "XAllocColor"
  23.     (DisplayP dpy)
  24.     (Colormap cmap)
  25.     (XColorP def))
  26.  
  27. (extern Status "XAllocNamedColor"
  28.     (DisplayP dpy)
  29.     (Colormap cmap)
  30.     (string colorname)
  31.     (out XColor hard_def) (out XColor exact_def))
  32.  
  33. (extern Status "XLookupColor"
  34.     (DisplayP dpy)
  35.     (Colormap cmap)
  36.     (string spec)
  37.     (out XColor def) (out XColor scr))
  38.  
  39. (extern Status "XAllocColorCells"
  40.     (DisplayP dpy)
  41.     (Colormap cmap)
  42.     (Bool contig)
  43.     (unsignedlongAP masks)
  44.     (unsignedint nplanes)
  45.     (unsignedlongAP pixels)
  46.     (unsignedint ncolors))
  47.  
  48. (extern Status "XAllocColorPlanes"
  49.     (DisplayP dpy)
  50.     (Colormap cmap)
  51.     (Bool contig)
  52.     (unsignedAP pixels)
  53.     (int ncolors)
  54.     (int nreds) (int ngreens) (int nblues)
  55.     (out unsignedlong rmask)
  56.     (out unsignedlong gmask)
  57.     (out unsignedlong bmask))
  58.  
  59. (extern void "XStoreColors"
  60.     (DisplayP dpy)
  61.     (Colormap cmap)
  62.     (XColorAP defs)
  63.     (int ncolors))
  64.  
  65. (extern void "XStoreColor" (DisplayP dpy) (Colormap cmap) (XColorP def))
  66.  
  67. (extern void "XStoreNamedColor"
  68.     (DisplayP dpy)
  69.     (Colormap cmap)
  70.     (string name)
  71.     (unsignedlong pixel)
  72.     (int flags))
  73.  
  74. (extern void "XFreeColors"
  75.     (DisplayP dpy)
  76.     (Colormap cmap)
  77.     (unsignedAP pixels)
  78.     (int npixels)
  79.     (unsignedlong planes))
  80.  
  81. ;;; 5.1.3  Reading Entries in a Color Map
  82.  
  83. (extern void "XQueryColor"
  84.     (DisplayP dpy)
  85.     (Colormap cmap)
  86.     (XColorP def))
  87.  
  88. (extern void "XQueryColors"
  89.     (DisplayP dpy)
  90.     (Colormap cmap)
  91.     (XColorAP defs)
  92.     (int ncolors))
  93.  
  94. ;;; 5.2  Creating and Freeing Pixmaps
  95.  
  96. (extern Pixmap "XCreatePixmap"
  97.     (DisplayP dpy)
  98.     (Drawable d)
  99.     (unsignedint width) (unsignedint height)
  100.     (unsignedint depth))
  101.  
  102. (extern void "XFreePixmap" (DisplayP dpy) (Pixmap pixmap))
  103.  
  104. ;;; 5.3 Manipulating Graphics Context/State
  105.  
  106. (extern GC "XCreateGC"
  107.     (DisplayP dpy)
  108.     (Drawable d)
  109.     (unsignedlong valuemask)
  110.     (XGCValuesP values))
  111.  
  112. (extern void "XCopyGC"
  113.     (DisplayP dpy)
  114.     (GC srcGC)
  115.     (unsignedlong mask)
  116.     (GC destGC))
  117.  
  118. (extern void "XChangeGC"
  119.     (DisplayP dpy)
  120.     (GC gc)
  121.     (unsignedlong valuemask)
  122.     (XGCValuesP values))
  123.  
  124. (extern void "XFreeGC" (DisplayP dpy) (GC gc))
  125.  
  126. (extern GContext "XGContextFromGC" (GC gc))
  127.  
  128. ;;; 5.4.1  Setting the Foreground, Background, Function, or Plane Mask
  129.  
  130. (extern void "XSetState"
  131.     (DisplayP dpy)
  132.     (GC gc)
  133.     (unsignedlong foreground)
  134.     (unsignedlong background)
  135.     (int function)
  136.     (unsignedlong planemask))
  137.  
  138. (extern void "XSetForeground"
  139.     (DisplayP dpy)
  140.     (GC gc)
  141.     (unsignedlong foreground))
  142.  
  143. (extern void "XSetBackground"
  144.     (DisplayP dpy)
  145.     (GC gc)
  146.     (unsignedlong background))
  147.  
  148. (extern void "XSetFunction"
  149.     (DisplayP dpy)
  150.     (GC gc)
  151.     (int function))
  152.  
  153. (extern void "XSetPlaneMask" (DisplayP dpy) (GC gc) (unsignedlong planemask))
  154.  
  155. ;;; 5.4.2  Setting the Line Attributes and Dashes
  156.  
  157. (extern void "XSetLineAttributes"
  158.     (DisplayP dpy)
  159.     (GC gc)
  160.     (unsignedint linewidth)
  161.     (int linestyle)
  162.     (int capstyle)
  163.     (int joinstyle))
  164.  
  165. (extern void "XSetDashes"
  166.     (DisplayP dpy)
  167.     (GC gc)
  168.     (int dash_offset)
  169.     (charAP list)
  170.     (int n))
  171.  
  172. ;;; 5.4.3  Setting the Fill Style and Fill Rule
  173.  
  174. (extern void "XSetFillStyle" (DisplayP dpy) (GC gc) (int fill_style))
  175.  
  176. (extern void "XSetFillRule" (DisplayP dpy) (GC gc) (int fill_rule))
  177.  
  178. ;;; 5.4.4  Setting the Fill Tile and Stipple
  179.  
  180. (extern Status "XQueryBestSize"
  181.     (DisplayP dpy)
  182.     (int class)
  183.     (Drawable drawable)
  184.     (unsignedint width) (unsignedint height)
  185.     (out unsignedint ret_width) (out unsignedint ret_height))
  186.  
  187. (extern Status "XQueryBestTile"
  188.     (DisplayP dpy)
  189.     (Drawable drawable)
  190.     (unsignedint width) (unsignedint height)
  191.     (out unsignedint ret_width) (out unsignedint ret_height))
  192.  
  193. (extern Status "XQueryBestStipple"
  194.     (DisplayP dpy)
  195.     (Drawable drawable)
  196.     (unsignedint width) (unsignedint height)
  197.     (out unsignedint ret_width) (out unsignedint ret_height))
  198.  
  199. (extern void "XSetTile" (DisplayP dpy) (GC gc) (Pixmap tile))
  200.  
  201. (extern void "XSetStipple" (DisplayP dpy) (GC gc) (Pixmap stipple))
  202.  
  203. (extern void "XSetTSOrigin" (DisplayP dpy) (GC gc) (int x) (int y))
  204.  
  205. ;;; 5.4.5  Setting the Current Font
  206.  
  207. (extern void "XSetFont" (DisplayP dpy) (GC gc) (Font font))
  208.  
  209. ;;; 5.4.6  Setting the Clip Region
  210.  
  211. (extern void "XSetClipOrigin" (DisplayP dpy) (GC gc) (int xorig) (int yorig))
  212.  
  213. (extern void "XSetClipMask" (DisplayP dpy) (GC gc) (Pixmap mask))
  214.  
  215. (extern void "XSetClipRectangles"
  216.     (DisplayP dpy)
  217.     (GC gc)
  218.     (int clip_x_origin) (int clip_y_origin)
  219.     (XRectangleAP rectangles)
  220.     (int n)
  221.     (int ordering))
  222.  
  223. ;;; 5.4.7  Setting the Arc Mode, Subwindow Mode, and Graphics Exposure
  224.  
  225. (extern void "XSetArcMode" (DisplayP dpy) (GC gc) (int arc_mode))
  226.  
  227. (extern void "XSetSubwindowMode" (DisplayP dpy) (GC gc) (int subwindow_mode))
  228.  
  229. (extern void "XSetGraphicsExposures"
  230.     (DisplayP dpy)
  231.     (GC gc)
  232.     (Bool graphics_exposures))
  233.